package com.egg.mall.model.request;

import com.egg.common.core.model.request.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "分类新增/编辑")
public class CategoryPostOrPut extends BaseRequest {


    @ApiModelProperty(value = "分类名称")
    private String name;

    @ApiModelProperty(value = "分类父级ID")
    private Long pid;

    @ApiModelProperty(value = "层级")
    private Integer level;

    @ApiModelProperty(value = "图标地址")
    private String iconUrl;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "是否展示")
    private Boolean visible;


}
